package leetcode.社招.华为;

/**
 * @author ：zsy
 * @date ：Created 2022/10/24 10:47 PM
 * @description：
 */
public class Test {

    @org.junit.Test
    public void test() {
        Student stu = new Student("zhangsan", "100");
        System.out.println(stu);
    }


    class Person {
        protected String name;

        public Person(String name) {
            this.name = name;
        }
    }

    class Student extends Person {
        protected String score;

        public Student(String name, String score) {
            super(name);
            this.score = score;
        }

        @Override
        public String toString() {
            return this.name + " " + this.score;
        }
    }
}
